package 开闭原则;

/**
 * @author zwzh_zj
 */
public class Main {
    public static void main(String[] args) {
        ICourse javaCourse = new JavaCourse();

        ICourse javaDistinctCourse = new JavaDistinctCourse();
/*
        System.out.println("原价" + javaCourse.getPrice());
        System.out.println("打折" + javaDistinctCourse.getPrice());*/

       /* *
         * 多种主题都可设置
         */
        new WindowsClient(new SimpleSubject());
        new WindowsClient(new ComplexSubject());

    }
}
